/**
 * 
 */
package com.jquery.ui.tags.javascript.accordion;

import com.jquery.ui.core.base.BaseTag;
import com.jquery.ui.core.bean.UIBean;
import com.jquery.ui.dictionary.IHeightStyleEnum;
import com.jquery.ui.tags.beans.script.AccordionsScriptUI;

/**
 * @author linyajun
 * 
 * @date	2013-9-22
 * @description   
 */
public class AccordionsTag extends BaseTag {

	/**
	 * 
	 */
	private static final long serialVersionUID = 3661328592178568935L;
	
	private String heightStyle;
	
	private Boolean collapsible=false;
	
	private Boolean sortable=false;
	

	@Override
	public String getEndTemplate() {
		
		return "accordions-script.ftl";
	}

	
	@Override
	public String getStartTemplate() {
		// TODO Auto-generated method stub
		return null;
	}

	
	@Override
	public UIBean getUiBean() {
		AccordionsScriptUI ui=new AccordionsScriptUI();
		ui.setRenderTo(getRenderTo());
		ui.setHeightStyle(IHeightStyleEnum.parseValue(heightStyle));
		ui.setCollapsible(collapsible);
		ui.setSortable(sortable);
		return ui;
	}


	
	


	


	/**
	 * @return the heightStyle
	 */
	public String getHeightStyle() {
		return heightStyle;
	}


	/**
	 * @param heightStyle the heightStyle to set
	 */
	public void setHeightStyle(String heightStyle) {
		this.heightStyle = heightStyle;
	}


	/**
	 * @return the collapsible
	 */
	public Boolean getCollapsible() {
		return collapsible;
	}


	/**
	 * @param collapsible the collapsible to set
	 */
	public void setCollapsible(Boolean collapsible) {
		this.collapsible = collapsible;
	}


	/**
	 * @return the sortable
	 */
	public Boolean getSortable() {
		return sortable;
	}


	/**
	 * @param sortable the sortable to set
	 */
	public void setSortable(Boolean sortable) {
		this.sortable = sortable;
	}
	
	

}
